<?php

require_once('Zend/Loader.php');

class Cms_Loader extends Zend_Loader
{
    public static function loadClass($class, $dirs = null)
    {
		if(!preg_Match('/IndexController/',$class))
		{
			if(preg_match('/Index/',$class))
				return false;
		}
        parent::loadClass($class, $dirs);
    }

    public static function autoload($class)
    {
        try {
            self::loadClass($class);
            return $class;
        } catch (Exception $e) {
            return false;
        }
    }
}